#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
xx = [{1111: "127.0.0.1"}, {222: "127.0.0.1"}, {222: "127.0.0.1"}]
# x = (i for i in xx if 1111 in i.keys)
x = (i for i in xx if i.get(222)).__next__()
print(x)